package com.corona.game;

import com.badlogic.gdx.math.Vector2;
import com.corona.Game;

import java.util.Map;

/* compiled from: Tile.java */
/* loaded from: pokewilds.jar:com/pkmngen/game/PutTile.class */
class PutTile extends Action {
    public Action.Layer layer = Action.Layer.map_0;
    public Map<Vector2, Tile> tiles;
    public Tile tile;

    public PutTile(Game game, Tile tile, Action nextAction) {
        super(new Object[0]);
        this.tile = tile;
        this.tiles = game.map.tiles;
        this.nextAction = nextAction;
    }

    @Override // com.corona.game.Action
    public String getCamera() {
        return "map";
    }

    @Override // com.corona.game.Action
    public Action.Layer getLayer() {
        return this.layer;
    }

    @Override // com.corona.game.Action
    public void step(Game game) {
        this.tiles.put(this.tile.position.cpy(), this.tile);
        game.actionStack.remove(this);
        game.insertAction(this.nextAction);
    }
}
